Link to -latomic by default
authorJérémy Lal <kapouer@melix.org>
Wed, 14 Jan 2026 00:19:18 +0000 (01:19 +0100)
committerJérémy Lal <kapouer@melix.org>
Wed, 14 Jan 2026 00:19:18 +0000 (01:19 +0100)
Last-Update: 2019-10-25
Forwarded: not-needed
Bug: https://github.com/nodejs/node/pull/28532
Bug: https://github.com/nodejs/node/issues/30093

This avoids surprises on mips*el/ppc*el

Gbp-Pq: Topic build
Gbp-Pq: Name flag_atomic.patch

node.gypi

index 36ed39f30855ff25c1c79aa3773d1383ddcb84f9..7aedd7d3e2fd07538cd136bb1752fca2c534cb23 100644 (file)
--- a/node.gypi
+++ b/node.gypi
       'libraries!': [
         '-lrt'
       ],
+      'libraries': [
+        '-latomic'
+      ]
     }],
     [ 'OS in "freebsd linux openharmony"', {
       'ldflags': [ '-Wl,-z,relro',